﻿#pragma once
#include "yzrutil.h"
#include "DSP.h"

namespace yzrilyzr_dsp{
	ECLASS(AmpAdd, public DSP){
	public:
	AmpAdd()=default;
	u_sample procDsp(u_sample input) override{
		throw - 1;
	}
	void procBlock(u_sample * input, u_sample * output, u_index length)override{
		for(u_index i=0;i < length;i++){
			output[i]+=input[i];
		}
	}
	void init(u_sample_rate sampleRate) override{}
	void resetMemory() override{}
	std::shared_ptr<DSP> cloneDSP() override{
		return std::make_shared < AmpAdd>();
	}
	void cloneParam(DSP*  obj1)override{}
	yzrilyzr_lang::String toString()const override;
	};
}